  <h2>对 {echo $order['buyer_username']} 买家评价</h2>
     {if $order['buyer_is_evaluate']==1}<h3>买家已评价</h3>{/if}
     <div class="control-group">
            <div class="radio">
            <img src="{echo AURL}/img/hao.png" />
			<label>
              <input type="radio" value="1" name="evaluate" checked="checked">
                    <span class="text">好评</span>
              </label>
          </div>
            <div class="radio">
            <img src="{echo AURL}/img/zhong.png" />
                <label>
                    <input type="radio" class="inverted" value="2" name="evaluate">
                    <span class="text">中评</span>
                </label>
            </div>
            <div class="radio">
            <img src="{echo AURL}/img/cha.png" />
                <label>
                    <input type="radio" class="inverted" value="3" name="evaluate">
                    <span class="text">差评</span>
                </label>
            </div>
        </div>
        
        <p>评语：(100字内)</p>
        
        <textarea id="EvaluateContent" class="form-control" style="width:100%;height:100px;margin-bottom:10px;"></textarea><p style="text-align:center;margin-top:10px;">
        
     <div class="text-right"><a class="btn btn-darkorange btn-sm" href="javascript:void(0);" onclick="SubmitEvaluate({echo $order['oid']},0);">提交评价</a></div>
     
     <script type="text/javascript"> 
	function SubmitEvaluate(oid,type){
			
		bootbox.confirm({  
		   buttons: {  
			  confirm: {  
				 label: '确认',  
			  },  
			  cancel: {  
				 label: '取消',  
			  }  
		   },  
		   title:'提示',
		   message: '<i class="glyphicon glyphicon-warning-sign"></i> 您确认要提交评价?',  
			   callback: function(result) {  
				  if(result) {  
					 bootbox.hideAll();
					 
					 var evaluate=$('input[name="evaluate"]:checked').val();
					 var content=$('#EvaluateContent').val();
					 if(type==1){
						 var workspeed=parseInt($('#star span').find('strong').html().replace(/分/gi,''));
						 var worksattitude=parseInt($('#star2 span').find('strong').html().replace(/分/gi,''));
						 var worksquality=parseInt($('#star3 span').find('strong').html().replace(/分/gi,''));
					 }
					 
					 $.post('{echo U("/post/task/evaluate/id/".$id)}',{oid:oid,evaluate:evaluate,content:content,workspeed:workspeed,worksattitude:worksattitude,worksquality:worksquality}, function(json) {
								
							$('.bootbox').PhpappProgress({json:json});
		
							return true;
								
					 }, 'json');
					 
					  bootbox.dialog({
							 message: '<div class="progress progress-striped active"><div style="width: 1%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" role="progressbar" class="progress-bar progress-bar-info"><span>0%</span></div></div>',
							 title: '<i class="icon fa fa-retweet"></i> 提交中',
							 closeButton: false
					 }).PhpappProgress({time:5000});
				 
					  return false; 
		  
				  }
			   } 
		
		})
		
		return false;
			
	}
	</script>